import request from '@/utils/request'

// 查询用户加入分组列表
export function listGroupUser(query) {
  return request({
    url: '/user/groupUser/list',
    method: 'get',
    params: query
  })
}

// 查询用户加入分组详细
export function getGroupUser(groupId) {
  return request({
    url: '/user/groupUser/' + groupId,
    method: 'get'
  })
}

// 新增用户加入分组
export function addGroupUser(data) {
  return request({
    url: '/user/groupUser',
    method: 'post',
    data: data
  })
}

// 修改用户加入分组
export function updateGroupUser(data) {
  return request({
    url: '/user/groupUser',
    method: 'put',
    data: data
  })
}

// 删除用户加入分组
export function delGroupUser(groupId) {
  return request({
    url: '/user/groupUser/' + groupId,
    method: 'delete'
  })
}
